home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / mx / states / State.as < prev    next >
Text File  |  2009-02-12  |  1KB  |  55 lines

  1. package mx.states
  2. {
  3.    import flash.events.EventDispatcher;
  4.    import mx.core.mx_internal;
  5.    import mx.events.FlexEvent;
  6.    
  7.    use namespace mx_internal;
  8.    
  9.    public class State extends EventDispatcher
  10.    {
  11.       
  12.       mx_internal static const VERSION:String = "3.0.0.0";
  13.        
  14.       
  15.       public var basedOn:String;
  16.       
  17.       private var initialized:Boolean = false;
  18.       
  19.       public var overrides:Array;
  20.       
  21.       public var name:String;
  22.       
  23.       public function State()
  24.       {
  25.          overrides = [];
  26.          super();
  27.       }
  28.       
  29.       mx_internal function initialize() : void
  30.       {
  31.          var _loc1_:int = 0;
  32.          if(!initialized)
  33.          {
  34.             initialized = true;
  35.             _loc1_ = 0;
  36.             while(_loc1_ < overrides.length)
  37.             {
  38.                IOverride(overrides[_loc1_]).initialize();
  39.                _loc1_++;
  40.             }
  41.          }
  42.       }
  43.       
  44.       mx_internal function dispatchExitState() : void
  45.       {
  46.          dispatchEvent(new FlexEvent(FlexEvent.EXIT_STATE));
  47.       }
  48.       
  49.       mx_internal function dispatchEnterState() : void
  50.       {
  51.          dispatchEvent(new FlexEvent(FlexEvent.ENTER_STATE));
  52.       }
  53.    }
  54. }
  55.